package com.cloud.provider.rabbitmq;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class UserMessageReceiver {

    //@RabbitListener(queues = "userQueue")
    public void receiveMessage(Message message) throws Exception {
        String result = new String(message.getBody());
        log.debug("result >>> {}", result);
    }

}
